package com.learn.practice.liteflow;

import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class StepA extends NodeComponent {
    @Override
    public void process() throws Exception {
        OrderContext orderContext = this.getFirstContextBean();
        log.info("order price:" + orderContext.getPrice());
        orderContext.setPrice(5.00d);
        log.info("step a processed");
    }
}
